<template>
  <div>
    <ul>
      <li v-for="(item, index) in arr" :key="index">{{ index }}:{{ item }}</li>
    </ul>
    <p v-for="(value, key) in obj" :key="key">{{ key }}:{{ value }}</p>
    <ul>
      <li v-for="(item, index) in 10" :key="index">
        {{ index }}：我是第{{ item }}个
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["抽烟", "喝酒", "烫头"],
      obj: {
        name: "张三",
        age: 18,
        gender: "男",
      },
    };
  },
};
</script>

<style lang="scss" scoped>
</style>